//
//  TwERPEntity.h
//  TwERP
//
//  Created by Xiangyang Li on 12-7-17.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef enum :int {
	GdInsert = 1,
	GdEdit = 2,
    GdUploading =4,
	GdBrowse = 64
} GdState;

@interface TwERPEntity : NSObject

@property int  entityId;
@property GdState operationState;

- (id)initWithNewId;
- (NSArray *) allKeys;
-(NSDictionary *) transFormToDictionary; //dynamic 
-(NSString *) commit;
-(NSDate *) stringToDate:(NSString *)dateStr;
-(NSString *) dateToString:(NSDate *)date;
-(void)validateEntityId;

@end
